<?php

namespace App\Api;

use App\Http\Controllers\Controller;
use App\Models\Attachment;
use Illuminate\Http\Request;

class AttachmentController extends Controller
{
    public function latestImg(Request $request)
    {
//        获得最新的一条
        return Attachment::latest()->first();
    }
}
